import request from '@/utils/request'

// 查询流程监听类列表
export function listProcessListener(query) {
  return request({
    url: '/flowable/processListener/list',
    method: 'get',
    params: query
  })
}

// 查询流程监听类详细
export function getProcessListener(id) {
  return request({
    url: '/flowable/processListener/' + id,
    method: 'get'
  })
}

// 新增流程监听类
export function addProcessListener(data) {
  return request({
    url: '/flowable/processListener',
    method: 'post',
    data: data
  })
}

// 修改流程监听类
export function updateProcessListener(data) {
  return request({
    url: '/flowable/processListener',
    method: 'put',
    data: data
  })
}

// 删除流程监听类
export function delProcessListener(id) {
  return request({
    url: '/flowable/processListener/' + id,
    method: 'delete'
  })
}
